.main{
    scroll-snap-type: y mandatory;/*y轴滚动捕捉*/
    /*overflow: scroll;/*显示滚动条*/
    overflow-x: hidden;/*水平超出隐藏*/
    height: 100vh;/*高度100%*/
}
.sec{
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;/*滚动时与窗口对齐*/
}
.titleimg{
    background-image: url("../img/background1.jpg");
    height: 100vh;
    background-repeat: no-repeat;/*背景不重复*/
    background-size: 100%;/*高度*/
    background-attachment: fixed;/*图片不随滚动而移动*/
    width: 100vw;
    transition: 0.5s ease 0s;
    animation: load 0.5s;
}
.titleimg .title{
    width: 100vw;
    padding:200px;/*设置内边距*/
    font-size: 100px;
    font-weight: bolder;
    color: rgba(246, 63, 63, 0.9);
}
@keyframes load{/*看不出动画效果*/
    0%{
        background-position-y: 50px;
        opacity: 0;
    }
    100%{
        background-position-y: 0px;
        opacity: 1;
    }
}
.pt{
    display: flex;/*弹性盒子容器*/
    flex-direction: column;/*子元素垂直排列*/
    height: 500px;
    width: 250px;
    float: left;
    margin: 150px 0px 0px 105px;/*设置外边距，上右下左*/
    background: rgba(219, 235, 241,0.8);
    box-shadow: 0 0 15px rgb(59, 73, 95);/*添加阴影效果，xy偏移为0，模糊半径为15*/
    border-radius: 15px;/*设置边框圆角*/
    overflow: hidden;/*超出隐藏*/
    scroll-snap-align: start;
    transition: all 0.5s ease 0s;
}
.pt:hover{
    cursor: pointer;/*设置光标图标*/
    transform: scale(1.05);/*大小变为1.05倍*/
}



.imghid{
    overflow: hidden;
}
.part1 .img{
    background-image: url("/img/part1.jpg");
}
.part2 .img{
    background-image: url("/img/part2.jpg");
}
.part3 .img{
    background-image: url("/img/part3.jpg");
}
.part4 .img{
    background-image: url("/img/part4.jpg");
}

.pt .img{
    height: 190px;
    width: 250px;
    background-size: cover;/*超出不显示*/
    background-position: 0px -30px;/*下移*/
    transition: all 0.5s ease 0s;
    opacity: 0.8;
}

.pt .img:hover{
    transform: scale(1.1);
}

.pt .txt{
    height: 310px;
    width: 200px;
    overflow: hidden;
    display: flex;
    flex-direction: column;/*加flex垂直排列*/
    margin: auto;/*自动计算内边距是元素居中*/
    
}


.pt .txt h1{
    text-align: center;
    font-size: 3em;
    color: rgb(28, 44, 68);
    height: 30px;
    line-height: 30px;/*行高*/
}

.pt .txt p{
    margin-top: -2px;
    word-wrap: break-word;/*允许单词内换行防止溢出*/
    color: rgb(114, 182, 202);
}


body{
    margin: 0;
    padding: 0;
    background-image: url("/img/background2.jpg");
    background-attachment: fixed; 
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;/*居中放置*/
    overflow-x: hidden;
}
.foot{
    margin-top: 0px;
    width: 100vw;
    height: 100px;
    float: left;
    clear: both;/*禁止其他元素左右浮动，使其本身处于下方*/
    text-align: center;
    margin-bottom: 0px;
    background-color: rgb(232, 165, 73);
}
.foot p{
    line-height: 10px;
    color: rgb(234, 47, 34);
}